package com.example.demo.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author:w
 * @Version:1.0
 * @CreateTime:2020/10/19
 * Description: 用于修程表
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
@Entity
@Table(name = "repair_process")
public class RepairProcess {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;

    @Column(name = "train_id")
    private String trainId;

    @Column(name = "line")
    private String line;

    @Column(name = "repair")
    private String repair;

    @Column(name = "state")
    private Integer state;

    @Column(name = "start_time")
    private String startTime;

    @Column(name = "duration")
    private Integer duration;

    @Column(name = "status")
    private Integer status;
    
    public RepairProcess(String line,String repair,Integer state,String startTime,Integer duration,Integer status) {
        this.line = line;
        this.repair = repair;
        this.state = state;
        this.startTime = startTime;
        this.duration = duration;
        this.status = status;
    }

}